/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;

/**
 *
 * @author nhóm 1 - 10HT
 */
public class SanPham implements Serializable {

	private int _maSP;
	private String _tenSP;
	private int _slTon;
	private int _slTonToiThieu;
	private int _thoiGianBaoHanh;
	private String _moTa;
	private double _giaBanHienHanh;
	private int _maLSP;

	public SanPham(SanPham tmp) {
		this._maSP = tmp._maSP;
		this._tenSP = tmp._tenSP;
		this._slTon = tmp._slTon;
		this._slTonToiThieu = tmp._slTonToiThieu;
		this._thoiGianBaoHanh = tmp._thoiGianBaoHanh;
		this._moTa = tmp._moTa;
		this._giaBanHienHanh = tmp._giaBanHienHanh;
		this._maLSP = tmp._maLSP;
	}

	public SanPham() {
		this._maSP = 0;
		this._tenSP = "";
		this._slTon = 0;
		this._slTonToiThieu = 0;
		this._thoiGianBaoHanh = 0;
		this._moTa = "";
		this._giaBanHienHanh = 0;
		this._maLSP = 0;
	}

	public SanPham(int _maSP, String _tenSP, int _slTon, int _slTonToiThieu, int _thoiGianBaoHanh, String _moTa, Float _giaBanHienHanh, int _maLSP) {
		this._maSP = _maSP;
		this._tenSP = _tenSP;
		this._slTon = _slTon;
		this._slTonToiThieu = _slTonToiThieu;
		this._thoiGianBaoHanh = _thoiGianBaoHanh;
		this._moTa = _moTa;
		this._giaBanHienHanh = _giaBanHienHanh;
		this._maLSP = _maLSP;
	}

	public int getMaSP() {
		return _maSP;
	}

	public void setMaSP(int _maSP) {
		this._maSP = _maSP;
	}

	public String getTenSP() {
		return _tenSP;
	}

	public void setTenSP(String _tenSP) {
		this._tenSP = _tenSP;
	}

	public int getSlTon() {
		return _slTon;
	}

	public void setSlTon(int _slTon) {
		this._slTon = _slTon;
	}

	public int getSlTonToiThieu() {
		return _slTonToiThieu;
	}

	public void setSlTonToiThieu(int _slTonToiThieu) {
		this._slTonToiThieu = _slTonToiThieu;
	}

	public int getThoiGianBaoHanh() {
		return _thoiGianBaoHanh;
	}

	public void setThoiGianBaoHanh(int _thoiGianBaoHanh) {
		this._thoiGianBaoHanh = _thoiGianBaoHanh;
	}

	public String getMoTa() {
		return _moTa;
	}

	public void setMoTa(String _moTa) {
		this._moTa = _moTa;
	}

	public double getGiaBanHienHanh() {
		return _giaBanHienHanh;
	}

	public void setGiaBanHienHanh(Float _giaBanHienHanh) {
		this._giaBanHienHanh = _giaBanHienHanh;
	}

	public int getMaLSP() {
		return _maLSP;
	}

	public void setMaLSP(int _maLSP) {
		this._maLSP = _maLSP;
	}

	@Override
	public String toString() {
		return this._tenSP;
	}
}
